<?php

declare(strict_types=1);

namespace App\Model;


/**
 * @property int $id ID
 * @property int $userid 用户ID
 * @property int $to_userid 朋友用户ID
 * @property string $message 留言
 * @property int $status 状态 0-待处理 1-同意 2-拒绝
 * @property int $apply_time 申请时间
 * @property int $op_time 操作时间
 */
class FriendApply extends Model
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'friend_apply';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'userid', 'to_userid', 'message', 'status', 'apply_time', 'op_time'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'userid' => 'integer', 'to_userid' => 'integer', 'status' => 'integer', 'apply_time' => 'integer', 'op_time' => 'integer'];
}
